﻿@model SoftHotel.Models.Proveedor

@{
    ViewBag.Title = "Vincular";
}

@using (Html.BeginForm())
{ 
<h1>
            <strong>Vincular Productos</strong></h1>
                        <table id="MainContent_Table3" rules="all" style="background-color: #BDBDBD; width: 900px; margin-bottom: 0px;" border="0">
	<tbody><tr>
		   <td height="20"/>
        	</tr>
</tbody></table>
<table id="MainContent_Table1" rules="all" style="border-color: Black; width: 900px; margin-bottom: 0px;" border="1">
	<tbody><tr>
		<td style="font-weight: bold; width: 110px;">Razon Social </td>

		<td style="width: 450px;">@ViewBag.razonSocial</td> 

		<td style="font-weight: bold; width: 140px;">Fecha de Registro</td>
		<td style="width: 200px;">@ViewBag.fecha </td>
	</tr><tr>
		<td style="font-weight: bold; width: 110px;"> RUC </td>
		<td style="width: 450px;"> @ViewBag.ruc</td>
		<td style="font-weight: bold; width: 140px;">Representante</td>
		<td style="width: 200px;">@ViewBag.representante </td>
	</tr><tr>
		<td style="font-weight: bold;width: 110px;"> Direccion </td>
		<td style="width: 450px;"> @ViewBag.dir</td>
		<td style="font-weight: bold; width: 140px;">Dni Representante</td>
		<td style="width: 200px;">@ViewBag.dni </td>
	</tr><tr>
		<td style="font-weight: bold;width: 110px;">E-mail</td>
		<td style="width: 450px;">@ViewBag.mail</td>
		<td style="font-weight: bold; width: 140px;">Celular</td>	
		<td style="width: 200px;">@ViewBag.cel </td>	
	</tr><tr>
		<td style="font-weight: bold;width: 110px;">Telefono</td>
		<td style="width: 450px;">@ViewBag.fono</td>
		<td style="font-weight: bold; width: 140px;">Estado</td>	
		<td style="width: 200px;">@ViewBag.estado </td>	
	</tr>
</tbody></table>
<br/>
        <h2>
            Detalle Productos Vinculados
        </h2>
	

<table id="añadir" rules="all" style="background-color: #BDBDBD; width: 900px; margin-bottom: 0px;" border="1">
	<tbody>
	<tr>
        <td><input type="submit" name="button" value="Añadir"/>
		</td>
	</tr>
</tbody></table>	
<table id="MainContent_Table2" rules="all" style="border-color: Black; width: 900px; margin-bottom: 0px;" border="1">
	<tbody><tr>
		<td style="font-weight: bold; width: 140px" align="center">ID</td>
		<td style="font-weight: bold; width: 350px;" align="center">Descripcion</td>
		<td style="font-weight: bold; width: 150px;" align="center">Categoria</td>
        <td style="font-weight: bold; width: 30px;" align="center"><input type="checkbox" /></td>
	</tr>
    @{
        int i = 0;
        foreach(var prod in (System.Collections.Generic.List<SoftHotel.Models.ProductoModel>)ViewBag.ListaProductos){
            <tr>
		        <td align="center">@prod.idProducto</td>
		        <td>@prod.descripcion</td>
		        <td align="center">@prod.categoria</td>
                <td align="center">E</td>
	        </tr>
            i++;
        }
    }       

</tbody></table>
 
<br/>
<br></br> 

	<input value="Guardar"  name="button" type="submit"/>	
	<input value="Cancelar" name="button" type="submit"/>
	
        <br/>       
}